package cn.it.service.impl;

import cn.it.dao.MenuDao;
import cn.it.pojo.Menu;
import cn.it.service.MenuService;
import com.alibaba.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service(interfaceClass = MenuService.class)
@Transactional
public class MenuServiceImpl implements MenuService {

    @Autowired
    private MenuDao menuDao;

    @Override
    public List<Menu> findMenuAll(String username) {
        return menuDao.findMenuAll(username);
    }
}
